import request from '@/utils/request'

// 查询玩法管理列表
export function listLuckyCommand(query) {
  return request({
    url: '/system/luckyCommand/list',
    method: 'get',
    params: query
  })
}

// 查询玩法管理详细
export function getLuckyCommand(id) {
  return request({
    url: '/system/luckyCommand/' + id,
    method: 'get'
  })
}

// 新增玩法管理
export function addLuckyCommand(data) {
  return request({
    url: '/system/luckyCommand',
    method: 'post',
    data: data
  })
}

// 修改玩法管理
export function updateLuckyCommand(data) {
  return request({
    url: '/system/luckyCommand',
    method: 'put',
    data: data
  })
}

// 删除玩法管理
export function delLuckyCommand(id) {
  return request({
    url: '/system/luckyCommand/' + id,
    method: 'delete'
  })
}

// 导出玩法管理
export function exportLuckyCommand(query) {
  return request({
    url: '/system/luckyCommand/export',
    method: 'get',
    params: query
  })
}